import { combineReducers, createStore, applyMiddleware } from 'redux'
import thunkMiddleWare from 'redux-thunk'
import user from './reducer/user'
import message from './reducer/message'

const reducer = combineReducers({
  user,
  message
})
const store = createStore(reducer, applyMiddleware(thunkMiddleWare))
export default store